<?php

require_once "./includes/classes.php";
$zam = new zameleon();

if ( $_GET['clear'] != "" )
{
	$zam->cache->clear_cache('error_log');
	header("Location: logs.php");
}
else
{
	while ( list(,$value) = each($zam->cache->data['error_log']) )
	{
		print "[-] $value<br />\n";
	}
	
	print "<p><a href=\"logs.php?clear=1\">Clear error log</a></p>";
}

?>